home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Minami 49
/
MINAMI49.ISO
/
Extra
/
winamp503_full.exe
/
$R0
/
Winamp Modern
/
seekshade.maki
(
.txt
)
< prev
next >
Wrap
Winamp Compiled Maki Script
|
2004-03-07
|
3KB
|
75 lines
/* Note: a decompiler is no invitation to steal code.
Please respect the the copyright */
#include "std.mi"
Global Group Group16;
Global Slider Slider17;
Global Int Int18;
Global Timer Timer19;
Global Text Text20;
System.onScriptLoaded()
{
Group16 = System.getScriptGroup();
Slider17 = Group16.findObject(( "shadeSeekerGhost"));
Text20 = Group16.findObject(( "SongtickerShade"));
Timer19 = ( new Timer);
Timer19.setDelay(1000);
return Null;
}
Timer19.onTimer()
{
Text20.setText(( ""));
Timer19.stop();
return Null;
}
System.onScriptUnloading()
{
delete Timer19;
return Null;
}
Slider17.onSetPosition(int newpos)
{
Float Float28;
Float Float25;
Int Int29;
if(Int18) {
Float25 = newpos;
Float25 = ( ( Float25 / 255) * 100);
Float28 = System.getPlayItemLength();
if(( Float28 != 0)) {
Int29 = ( ( Float28 * Float25) / 100);
Timer19.start();
Text20.setText(( ( ( ( ( ( ( "SEEK\:") + System.integerToTime(Int29)) + ( "\/")) + System.integerToTime(Float28)) + ( "\ \(")) + System.integerToString(Float25)) + ( "\%\)\ ")));
}
}
return Null;
}
Slider17.onLeftButtonDown(int x, int y)
{
Int18 = 1;
return Null;
}
Slider17.onLeftButtonUp(int x, int y)
{
Int18 = 0;
Timer19.start();
Text20.setText(( ""));
return Null;
}
Slider17.onSetFinalPosition(int pos)
{
Timer19.start();
Text20.setText(( ""));
return Null;
}